home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / contextmenu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-01  |  1.6 KB  |  50 lines

  1. /*
  2.  For general Scribus (>=1.3.2) copyright and licensing information please refer
  3.  to the COPYING file provided with the program. Following this notice may exist
  4.  a copyright and/or license notice that predates the release of Scribus 1.3.2
  5.  for which a new license (GPL+exception) is in place.
  6.  */
  7. /***************************************************************************
  8. *                                                                         *
  9. *   This program is free software; you can redistribute it and/or modify  *
  10. *   it under the terms of the GNU General Public License as published by  *
  11. *   the Free Software Foundation; either version 2 of the License, or     *
  12. *   (at your option) any later version.                                   *
  13. *                                                                         *
  14. ***************************************************************************/
  15.  
  16. //CB Added 22102007 for the canvas context menu
  17.  
  18. #include <QMenu>
  19. #include <QStringList>
  20.  
  21. class QWidget;
  22.  
  23.  
  24. #include "selection.h"
  25.  
  26. class ScribusDoc;
  27. class ScribusMainWindow;
  28.  
  29. class ContextMenu : public QMenu
  30. {
  31.     Q_OBJECT
  32. public:
  33.     ContextMenu(Selection &sel, ScribusMainWindow *actionsParent, ScribusDoc* doc, QWidget* parent=0);
  34.     ContextMenu(ScribusMainWindow *actionsParent, ScribusDoc* doc, double mx, double my, QWidget* parent=0);
  35.     ~ContextMenu();
  36.     
  37. protected:
  38.     void processSelection();
  39.     void createMenuItems_Selection();
  40.     void createMenuItems_NoSelection(double mx, double my);
  41.     
  42.     Selection m_Sel;
  43.     QStringList m_actionList;
  44.     ScribusMainWindow *m_AP;
  45.     ScribusDoc *m_doc;
  46.     
  47.     QString pageDeletePrimaryString;
  48.     bool onAPage;
  49. };
  50.